package org.clockworkmages.games.anno1186.situations.gameoptions.options;

import org.clockworkmages.games.anno1186.GameStateService;
import org.clockworkmages.games.anno1186.Injected;
import org.clockworkmages.games.anno1186.model.option.Option;
import org.clockworkmages.games.anno1186.situations.gameoptions.GameMenuSituation;

public class GameMenuOption
		extends Option {

	public static GameMenuOption INSTANCE = new GameMenuOption();

	@Injected
	private GameStateService gameStateService;

	private GameMenuOption() {
		super("GAME_MENU");
		this.setLabel("Game Menu");
	}

	@Override
	public void select() {
		GameMenuSituation situation = GameMenuSituation.INSTANCE;
		gameStateService.addSituation(situation, true);
		super.select();
	}
}
